package com.cindata

class WorkflowAuthority
{
    String name
    static READ()
    {
        WorkflowAuthority.findByName('View')
    }

    static EDIT()
    {
        WorkflowAuthority.findByName('Edit')
    }

    static ADMINISTRATOR()
    {
        WorkflowAuthority.findByName('Administrator')
    }

    static APPROVAL()
    {
        WorkflowAuthority.findByName('Approval')
    }
    static constraints = {
        name maxSize: 32, unqiue: true
    }
}